package com.ang.generic.genericInterface.test01;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        Domain domain1 = new Domain(1,"data1");
        Domain domain2 = new Domain(2,"data2");
        Domain domain3 = new Domain(3,"data3");
        Domain domain4 = new Domain(4,"data4");

        List<Domain> list = new ArrayList<>(Arrays.asList(domain1,domain2,domain3,domain4));

        GenericClass<Domain,Integer> genericClass = new GenericClass();
        genericClass.setList(list);
        genericClass.setE(1);

        genericClass.forEachList();
    }
}
